﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace NeuroPrev
{
    public partial class FSplash : Form
    {
        public FSplash()
        {
            InitializeComponent();
            _SetAndStartTimer();
        }

        System.Windows.Forms.Timer t = new System.Windows.Forms.Timer();

        private void _SetAndStartTimer()
        {
            t.Interval = 3000;

            t.Tick += new EventHandler(t_Tick);

            t.Start();
        }

        void t_Tick(object sender, EventArgs e)
        {
            this.Close();
        }
        
        private void button1_Click(object sender, EventArgs e)
        {
            Program.ForceClose = true;
            this.Close();
        }
    }
}
